package com.justrun.zjutsystem.zjutsystem.mapper;

import com.justrun.zjutsystem.zjutsystem.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author chandler
 * @since 2020-09-27
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 查询用户所有角色
     * @param userId
     * @return
     */
    List<SysRole> selectSysRoleByUserId(Integer userId);
}
